﻿@using WB.Core.Infrastructure.Versions
@using WB.UI.Headquarters.Services
@inject IProductVersion productVersion
@inject IVersionCheckService versionCheckService

<footer class="footer">
    <div class="container-fluid">
        <div class="text-right">
            &copy; @DateTime.Now.Year.ToString() <a href="http://www.worldbankgroup.org">@Pages.Layout_WorldBank</a>, @Pages.Layout_RightsReserved <a href="https://www.worldbank.org/en/about/legal">@Pages.Layout_Legal</a>.
        </div>
        <div class="text-right">
            <a href="https://docs.mysurvey.solutions" target="_blank" title="Help">@MainMenu.Help</a>
            <span>|</span>
            <span id="appVersion">@(productVersion.ToString())</span>
            <span>|</span>
            <a href="@Url.Action("Index", "Download")">@Common.GetInterviewerApp</a>
            @if (versionCheckService.DoesNewVersionExist())
            {
                <div>
                    <span style="background-color: #ff8;">@Common.NewVersionAvailable @(versionCheckService.GetNewVersionString()) </span>
                </div>
            }
        </div>
        <div class="text-right">
            @*<partial name="_PoweredBy" />*@
        </div>
    </div>
</footer>
